<script setup>
	function clear(){
		uni.removeTabBarBadge({
			index:1
		})
	}
	
	
	setTimeout(() => {
		uni.setNavigationBarTitle({
			title: "动态标题",
		})
		uni.hideNavigationBarLoading()
	}, 2000)

	uni.setNavigationBarColor({
		frontColor: '#ffffff',
		backgroundColor: '#ffaa00',
		animation: {
			duration: 400,
			timingFunc: 'easeIn'
		}
	})
	uni.showNavigationBarLoading()

	function remove() {
		uni.showModal({
			title: "是否删除",
			content: "删除后可在回收站恢复",
			cancelText: "no",
			confirmText: "yes",
			cancelColor: "#999",
			confirmColor: "#ff0000",

			success: res => {
				console.log(res)
				if (res.confirm) {
					uni.showToast({
						title: "删除成功"
					})
				} else {
					uni.showToast({
						icon: 'none',
						title: "取消操作"
					})
				}
			},

		})
	}

	let arrs = ["初中", "高中", "大专", "本科"]

	function select() {
		uni.showActionSheet({
			title: "请选择",
			itemList: arrs,
			itemColor: "#00d1ff",

			success: res => {

				console.log(res);
				console.log(arrs[res.tapIndex])
			}
		})
	}
</script>
<template>
	<view class="">
		分类页面
		<button @click="remove">删除</button>
		<view>----------</view>
		<button @click="select">学历</button>
		<button @click="clear">清空</button>
	</view>
</template>
<style lang="scss" scoped>

</style>